//引入自定义的组件
import { allGloablComponent } from './componentsIn'
import { allGloablIcons } from './iconsIn'

//合并对象
const allGloabObject = Object.assign({}, allGloablComponent, allGloablIcons)

/** 遍历注册为全局组件*/
export default {
  install(app: any) {
    Object.keys(allGloabObject).forEach((key) => {
      app.component(key, allGloabObject[key])
    })
  },
}
